package com.lagou.task10.test;


/**
 * 通话套餐类
 */
public class TalkMeal extends CardMeal {

    private int talkTime;//通话时长

    private int smsNumber;//短信条数

    public TalkMeal() {

    }

    public int getTalkTime() {
        return talkTime;
    }

    public void setTalkTime(int talkTime) {
        this.talkTime = talkTime;
    }

    public int getSmsNumber() {
        return smsNumber;
    }

    public void setSmsNumber(int smsNumber) {
        this.smsNumber = smsNumber;
    }

    public TalkMeal(int postage) {
        super(postage);
    }

    public TalkMeal(int postage, int talkTime, int smsNumber) {
        super(postage);
        this.talkTime = talkTime;
        this.smsNumber = smsNumber;
    }

    @Override
    public void show() {
        System.out.println("通话时长："+getTalkTime()+"短信条数："+getSmsNumber()+"每月资费："+getPostage());
    }
}
